﻿using System.Collections.Generic;
using MigratorCore.Bases;
namespace MigratorCore.Objects
{
    /// <summary>
    /// Forum Base Object Class
    /// </summary>
    public class Forum : MigratorCore.Bases.Object
    {
        /// <summary>
        /// Sub Forums
        /// </summary>
        private List<Forum> forums;

        public List<Forum> Forums
        {
            get { return forums; }
            set { forums = value; }
        }
        /// <summary>
        /// Posts in the Forum
        /// </summary>
        private List<Post> posts;

        public List<Post> Posts
        {
            get { return posts; }
            set { posts = value; }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private List<string> roles;

        public List<string> Roles
        {
            get { return roles; }
            set { roles = value; }
        }

        public Forum()
        {
            this.description = "";
            this.Name = "";
            this.posts = new List<Post>();
            this.roles = new List<string>();
            this.forums = new List<Forum>();
        }

        public Forum(string Name, string Description)
        {
            this.description = Description;
            this.Name = Name;
            this.posts = new List<Post>();
            this.roles = new List<string>();
            this.forums = new List<Forum>();
        }
    }
}
